package com.nineclock.system.service;

import com.nineclock.attendance.dto.DepartmentOrUserSimpleDTO;
import com.nineclock.common.entity.PageResult;
import com.nineclock.system.dto.SysCompanyUserDTO;
import com.nineclock.system.entity.ExcelMember;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public interface SysCompanyUserService {
    List<SysCompanyUserDTO> queryCompanyMemberList();

    PageResult<SysCompanyUserDTO> members(Integer page, Integer pageSize, String keyword, Long departmentId);

    void importData(MultipartFile excelFile) throws IOException;

    void handleParsedData(List<ExcelMember> list);

    SysCompanyUserDTO queryOne(String mobile);

    Integer queryUserCountByDepartmentIds(List<Long> departmentIds);

    List<DepartmentOrUserSimpleDTO> querySimpleDepartment(Long departmentId, Integer includeMember);

    SysCompanyUserDTO queryAdminByCompanyId(Long companyId);

    List<SysCompanyUserDTO> queryAllUserByCompanyId(Long companyId);

    List<SysCompanyUserDTO> queryCompanyUser(Long userId, Long companyId);
}
